package com.yunjian.core.basic.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunjian.core.basic.mapper.SUserRoleMapper;
import com.yunjian.core.basic.model.SUserRoleExample;
import com.yunjian.core.basic.model.SUserRoleKey;
import com.yunjian.core.basic.service.SUserRoleService;

@Service
public class SUserRoleServiceImpl implements SUserRoleService{
	
	//private final static Logger logger = LoggerFactory.getLogger(SUserRoleServiceImpl.class);
	
	@Autowired
	private SUserRoleMapper mapper;

	@Override
	public int countByExample(SUserRoleExample example) {
		return mapper.countByExample(example);
	}

	@Override
	public int deleteByExample(SUserRoleExample example) {
		return mapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(SUserRoleKey key) {
		return mapper.deleteByPrimaryKey(key);
	}

	@Override
	public int insert(SUserRoleKey record) {
		return mapper.insert(record);
	}

	@Override
	public int insertSelective(SUserRoleKey record) {
		return mapper.insertSelective(record);
	}

	@Override
	public List<SUserRoleKey> selectByExample(SUserRoleExample example) {
		return mapper.selectByExample(example);
	}

	@Override
	public int updateByExampleSelective(SUserRoleKey record,
			SUserRoleExample example) {
		return mapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(SUserRoleKey record, SUserRoleExample example) {
		return 0;
	}


	
}
